/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pos.Driving.Train;

import pos.IModeController;

/**
 * 列车的单件工厂
 * @author Administrator
 */
public class TrainFactory {
    private static TrainFactory factory;
    private TrainFactory(){}
    
    public static TrainFactory getInstance(){
        if (factory == null)
            factory = new TrainFactory();
        return factory;
    }
    public Train createTrain(String descXMLPathKey, IModeController trainController, int pathID){
        return new Train(descXMLPathKey,  trainController,  pathID);
    }
}
